package com.operate.service;

import com.operate.bean.VO.ShareNumVO;
import com.operate.dao.ReservationMapper;
import com.operate.dao.ScreenDataMapper;
import com.operate.dao.WaitMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: ZeckZheng
 * @time: 2023/11/10 3:46
 */
@Slf4j
@Service
public class ShareNumService {
    @Autowired
    private ScreenDataMapper screenMapper;
    @Autowired
    private WaitMapper waitMapper;
    @Autowired
    private ReservationMapper reservationMapper;
    @Autowired
    private WaitService waitService;
    @Autowired
    private ReservationService reservationService;

    /**
     * @name: shareNumList
     * @description: 平均等位时间
     * @auther: ZeckZheng
     */
    public List<ShareNumVO> shareNumList() {
        List<ShareNumVO> list = new ArrayList<>();
        list.addAll(waitService.todayAvgWaitTimeStat());
        list.addAll(waitService.waitNumTimeSlotStatByMonth());

        //list.addAll(waitService.waitRegularCustomerStat());
        //list.addAll(reservationService.reservationRegularCustomerStat());

        return list;
    }


}
